package com.yhao.stock.service.impl;

import com.yhao.stock.entity.StockInfo;
import com.yhao.stock.mapper.StockInfoMapper;
import com.yhao.stock.service.StockInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 股票信息表 服务实现类
 * </p>
 *
 * @author yhao
 * @since 2023-11-09
 */
@Service
public class StockInfoServiceImpl extends ServiceImpl<StockInfoMapper, StockInfo> implements StockInfoService {

    @Autowired
    private StockInfoMapper stockInfoMapper;

    @Override
    public List<StockInfo> listByRange(int startId, int endId) {
        return stockInfoMapper.listByRange(startId, endId);
    }

    @Override
    public String getNameByCode(String dCode) {
        return stockInfoMapper.getNameByCode(dCode);
    }
}
